export function isLogin() {
  if (localStorage.getItem('userInfo')) {
    return true
  }
  else {
    return false
  }
}

export function getToken() {
  return localStorage.getItem('token');
}

export function setToken(token: string) {
  localStorage.setItem('token', token);
}

export function removeToken() {
  localStorage.removeItem('token');
}
